home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2047 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  705 b 

  1. Path: news.mira.net.au!news
  2. From: davidw@werple.net.au (David White)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Dereferencing ptrs to ptrs
  5. Date: 15 Jan 1996 19:40:22 +1100
  6. Organization: Werple Internet, Melbourne
  7. Message-ID: <4dd3tm$5u4@werple.net.au>
  8. References: <4dcq0g$k17@canb.cin.gov.au>
  9. NNTP-Posting-Host: werple.mira.net.au
  10.  
  11. Christopher Walkden <christow@cin.gov.au> writes:
  12.  
  13. >How do you dereference a pointer pointer?
  14.  
  15. >TDecoratedFrame **frame;
  16.  
  17. >Value = *(frame)->Attr.X;
  18.  
  19. This is the same as: *frame->Attr.X
  20.  
  21. >didn't work, so I had to create a dummy.
  22.  
  23. >TDecoratedFrame *dummy = *frame;
  24. >Value = dummy->Attr.X;
  25.  
  26. >Is there a more elegant way?
  27.  
  28. (*frame)->Attr.X
  29.  
  30. David White
  31. davidw@werple.mira.net.au
  32.  
  33.